﻿namespace enyo
{
    public class Pane : enyo.Control
    {
        public string transitionKind;

        public void SelectView(Control inView, bool inSync)
        {
        }

        public void SelectViewByName(string name, bool inSync)
        {
        }

        public void SelectViewByIndex(int idx, bool inSync)
        {
        }

        public SelectViewEventHandler onSelectView;
        public CreateViewEventHandler onCreateView;

        public void Back() { }

        public Control GetView()
        {
            return null;
        }

        public int GetViewIndex()
        {
            return 0;
        }

        public string GetViewName()
        {
            return null;
        }

        public void Next()
        {
        }

        public void ValidateView(string inName)
        {
        }
    }

    public delegate void SelectViewEventHandler(object sender, Control View, Control previousView);
    public delegate void CreateViewEventHandler(object sender, string viewName);

    public static class PaneExt
    {
        public static SelectViewEventHandler Bind(this SelectViewEventHandler handler, object target)
        {
            return null;
        }

        public static CreateViewEventHandler Bind(this CreateViewEventHandler handler, object target)
        {
            return null;
        }
    }
}
